/*
 ============================================================================
 Name		: Flashbox4ProMainView.h
 Author	  : HeQun
 Version	 : 1.0
 Copyright   : 
 Description : CFlashbox4ProMainView declaration
 ============================================================================
 */

#ifndef FLASHBOX4PROMAINVIEW_H
#define FLASHBOX4PROMAINVIEW_H

// INCLUDES
#include <aknview.h>
#include "Flashbox4ProMainContainer.h"

// CLASS DECLARATION

/**
 *  CFlashbox4ProMainView
 * 
 */
class CFlashbox4ProMainView : public CAknView
	{
public:
	// Constructors and destructor
	/**
	* EPOC default constructor.
	*/
	void ConstructL();

	/**
	 * Destructor.
	 */
	~CFlashbox4ProMainView();

public: // Functions from base classes
	
	/**
	* From CAknView returns Uid of View
	* @return TUid uid of the view
	*/
	TUid Id() const;

	/**
	* From MEikMenuObserver delegate commands from the menu
	* @param aCommand a command emitted by the menu 
	* @return void
	*/
	void HandleCommandL(TInt aCommand);

	/**
	* From CAknView reaction if size change
	* @return void
	*/
	void HandleClientRectChange();

private:

	/**
	* From CAknView activate the view
	* @param aPrevViewId 
	* @param aCustomMessageId 
	* @param aCustomMessage 
	* @return void
	*/
	void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
		const TDesC8& aCustomMessage);

	/**
	* From CAknView deactivate the view (free resources)
	* @return void
	*/
	void DoDeactivate();

private: // Data
	CFlashbox4ProMainContainer* m_pProMainContainer;
};

#endif // FLASHBOX4PROMAINVIEW_H
